{# This templates is used to display an actor in the "followers" and
 # "following" collections.
 #}

<div>
    <a href="{{ actor['id'] }}" target="_blank">
        {{ actor['preferredUsername'] }} (@{{actor['name']}})
    </a>
</div>
<div>
    {{ actor['type'] }}
</div>

<div class="mb-5">
    <a href="{{ url_for('forgefed_ns.federation_follow', actor_uri=actor['id']) }}" class="mr-2">
        Follow
    </a>

    {% if actor['type'] == 'Project' %}

        <a href="{{ url_for('forgefed_ns.federation_submit_ticket', actor_uri=actor['id']) }}" class="mr-2">
            Submit ticket
        </a>
        <a href="" class="mr-2">
            Send patch
        </a>

    {% endif %}
</div>
